package com.woniuxy.center.controller;


import com.woniuxy.center.entity.IDCardResult;
import com.woniuxy.center.util.IDCardRecognitionUtil;
import com.woniuxy.life.core.api.CommonResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author 邓粟天，高君诚
 * @since 2020-09-27
 */
@RestController
@RequestMapping("/center/user")
public class UserController {

    /**
     * 个人身份验证
     * @author 邓粟天，高君诚
     * @date 2020-9-27
     */
    @PostMapping("/authentication/{id}")
    public CommonResult userAuthentication(@PathVariable("id") Integer uid,boolean detectDirectionFlag, boolean detectRiskFlag, String idCardSide, String imagePath){
        IDCardResult idCardResult = IDCardRecognitionUtil.readIDCard(true, true, "front", imagePath);
        return null;
    }
}
